Earley Deduction

نویسنده

  • Harry H. Porter
چکیده

This paper first reviews Earley Deduction, a generalization of the Earley Parsing Algorithm to the execution of Horn Clause Logic Programs. Earley Deduction is both sound and—unlike the standard Prolog interpreter—complete; proofs of this are included. For functor-free programs, the method is also guaranteed to terminate. (The functor-free subset of Prolog is called DATALOG and can be used to compute relational join, selection, transitive closure, etc.) Earley Deduction is elegant but, unfortunately, the price paid for completeness is efficiency. We conclude by describing implementation techniques that make Earley Deduction practical for DATALOG programs. Review of Earley Deduction The traditional Prolog interpreter performs a depth-first search for a proof and consequently suffers from some of the problems associated with depth-first parsing algorithms. For example, if a program contains left-recursive rules the interpreter may go into an infinite loop, failing to find a proof even though one exists, just as a top-down parser may fail to find a parse when given a grammar containing left-recursion. In 1970, Jay Earley described an algorithm called Earley Parsing that overcomes some of the problems of both top-down and bottom-up parsing by combining aspects of both [Earley, 1970]. In computational linguistics, various incarnations of this algorithm have been studied under the name Chart Parsing. 1 Although written long ago, when I was a Ph.D. student at Oregon Graduate Center / Oregon Graduate Institute / OHSU, this paper was reformatted in May, 2009, and posted to the web at this time. Other than repairing typos, no substantive changes have been made.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Bottom-Up Earley Deduction

We propose a bottom-up variant of Earley deduction. Bottom-up deduction is preferable to top-down deduction because it allows incrementai processing (even for head-driven grammars), it is data-driven, no subsumption check is needed, and preference values attached to lexical items can be used to guide best-first search. We discuss the scanning step for bottom-up Earley deduction and indexing sch...

متن کامل

Memoization of Top Down Parsing

In a paper published in this journal, Norvig (1991) pointed out that memoization of a topdown recognizer program produces a program that behaves similiarly to a chart parser. This is not surprising to anyone familiar with logic-programming approaches to NLP. For example, the Earley deduction proof procedure is essentially a memoizing version of the top-down SLD proof procedure employed by Prolo...

متن کامل

A Variant of Earley Deduction with Partial Evaluation

We present an algorithm for query evaluation given a logic program consisting of function-free Datalog rules. It is based on Earley Deduction [4,6] and uses a partial evaluation similar to the one we developed for our SLDMagic method [1]. With this, finite automata modeling the evaluation of given queries are generated. In certain cases, the new method is more efficient than SLDMagic and the st...

متن کامل

Generalized Earley Deduction and Its Correctness

This paper describes a deduction method that works both top-down and bottom-up. The method can be viewed as an extension of a well-known approach|Earley deduction|to handle negation-as-failure. We show that with respect to the stratiied model theory of 1] the method is sound, that it is strongly complete (terminating) for function-free programs with negation, and complete for programs without n...

متن کامل

Application of Methods for Syntax Analysis of Context-Free Languages to Query Evaluation of Logic Programs

My research goal is to employ a parser generation algorithm based on the Earley parsing algorithm to the evaluation and compilation of queries to logic programs, especially to deductive databases. By means of partial deduction, from a query to a logic program a parameterized automaton is to be generated that models the evaluation of this query. This automaton can be compiled to executable code;...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1986